#include <cstdio>
#include <fstream>

long long gcd(long long a, long long b, long long &x, long long &y)
{
	if (!a)
	{
		x = 0;
		y = 1;
		return b;
	}
	else
	{
		long long x1, y1;
		long long d = gcd(b % a, a, x1, y1);
		x = y1 - (b / a) * x1;
		y = x1;
		return d;
	}
}

int main() 
{
	std::ifstream input("in.txt");
	std::ofstream output("out.txt");
	long long A, B, C;
	while (input >> A >> B >> C)
	{
		if (A && B)
		{
			long long x = 0, y = 0;
			long long D = gcd(A, B, x, y);
			if (C % D)
			{
				output << "<none>";
			}
			else
			{
				output << x * (C / D) << " " << y * (C / D);
			}
		}
		else
		{
			if (A || B)
			{
				if (A)
				{
					if (C % A)
					{
						output << "<none>";
					}
					else
					{
						output << C / A << " 0";
					}
				}
				if (B)
				{
					if (C % B)
					{
						output << "<none>";
					}
					else
					{
						output << "0 " << C / B;
					}
				}
			}
			else
			{
				if (C)
				{
					output << "<none>";
				}
				else
				{
					output << "1 1";
				}
			}
		}
	output << "\n";
	}
	return 0;
}